cmake_minimum_required(VERSION 3.10)
project(Pointer)

find_package(Boost REQUIRED COMPONENTS system thread coroutine) 
include_directories(${Boost_INCLUDE_DIRS}) 

aux_source_directory(. _SOURCES)

#add the executable
foreach(SRC  ${_SOURCES})
    get_filename_component(i ${SRC} NAME_WE)
    add_executable(${i} ${SRC})
    target_link_libraries(${i} ${Boost_LIBRARIES}) 
endforeach()
